home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_8.lha
/
8_8
/
8_8_op.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
369b
|
21 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
nt randomchars::operator[](long offset)
if (offset != curoffset)
if (fseek(fp, offset, 0))
return -1;
int c = getc(fp);
if (c == EOF)
{
curoffset = offset;
return -1;
}
curoffset = offset + 1;
return c;